package com.stylefeng.guns.modular.product.service.impl;

import com.stylefeng.guns.modular.product.model.Forward;
import com.stylefeng.guns.modular.product.dao.ForwardMapper;
import com.stylefeng.guns.modular.product.service.IForwardService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author stylefeng123
 * @since 2019-03-15
 */
@Service
public class ForwardServiceImpl extends ServiceImpl<ForwardMapper, Forward> implements IForwardService {

    @Override
    public void updateStatusOldForward(List<Forward> list) {
        String[] dealNo = new String[list.size()];
        for (int i = 0; i < list.size(); i++) {
            Forward forward = list.get(i);
            dealNo[i] = forward.getDealNo();
        }
        this.baseMapper.updateStatusOldForward(dealNo);
    }
}
